From: Jasper St. Pierre Date: Sun, 13 Oct 2013 22:41:03 +0000 (-0400) Subject: shell-global: Fix a few memory leaks X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3213 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=454885950907527efcd22ed3821e046eb2dd18e5;p=gnome-shell.git shell-global: Fix a few memory leaks https://bugzilla.gnome.org/show_bug.cgi?id=710104 --- diff --git a/src/shell-global.c b/src/shell-global.c index 4d91a2b12..92da97048 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1779,6 +1779,8 @@ shell_global_set_runtime_state (ShellGlobal *global, NULL, FALSE, G_FILE_CREATE_REPLACE_DESTINATION, NULL, NULL, NULL); } + + g_object_unref (path); } /** @@ -1822,5 +1824,8 @@ shell_global_get_runtime_state (ShellGlobal *global, g_mapped_file_unref (mfile); } + g_object_unref (path); + g_free (pathstr); + return res; }